package com.example.test.mapper;

import com.example.test.pojo.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Cavan
 * @date 2023-06-14
 * @qq 2069543852
 */
@Mapper
public interface StudentMapper {

    //根据id查询信息
    Student getStuById(String id);

    //查询所有信息
    List<Student> getAllStu();

    //添加信息
    int insert(Student student);

    //根据id修改信息
    int updateById(Student student);

    //根据id删除信息
    int deleteById(String id);


}
